Skip to content

Conversation

itzpr3d4t0r
Copy link
Member

@itzpr3d4t0r itzpr3d4t0r commented Jul 23, 2023

Closes #173.

This is just a first implementation that supports:

  • Lines
  • Circles
  • Vec2(s) / tuples / lists / sequences of len 2

It's a bit different from the other collideswith since it supports a only_edges param. it only works with shapes and points.
This PR also fixes an issue with polygon collideline tests, which effectively didn't test the function but its line counterpart collidepolygon.

@itzpr3d4t0r itzpr3d4t0r added type:new_api Adds new functionalities to the project submodule:polygon submodule:collisions labels Jul 23, 2023
@itzpr3d4t0r itzpr3d4t0r marked this pull request as ready for review January 2, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
submodule:collisions submodule:polygon type:new_api Adds new functionalities to the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Polygon collideswith()
1 participant